from selenium import webdriver
import userinfo, time

un, pw = userinfo.fun()

print
un, pw

driver = webdriver.Chrome()
driver.get("http://www.douban.com")
driver.find_element_by_name("form_email").clear()
driver.find_element_by_name("form_email").send_keys(un)
time.sleep(3)
driver.find_element_by_name("form_password").clear()
driver.find_element_by_name("form_password").send_keys(pw)
time.sleep(3)
driver.find_element_by_class_name("bn-submit").click()
time.sleep(3)
driver.quit()